<form name="frmlist" id="frmlist" action="<?php echo $this->site['base_url']?>admin_careers/search" method="post">
<table class="title" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('careers_lang.tt_page')?></td>
    <td class="title_button">
    <button type="button" name="btn_new" class="button new" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_careers/create'"/>
    <span><?php echo Kohana::lang('careers_lang.btn_new_careers')?></span>
    </button>
    </td>
  </tr>
</table>
<!--<table class="list_top" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php echo Kohana::lang('admin_lang.lbl_search')?>:
    <input name="txt_keyword" type="text" id="txt_keyword" value="<?php if(isset($keyword)) echo $keyword ?>"/>
    &nbsp;
	<button type="submit" name="btn_search" class="button search"/>
    <span><?php echo Kohana::lang('admin_lang.btn_search')?></span>
    </button>
    </td>
  </tr>
</table>-->	
<table class="list" cellspacing="1" cellpadding="5">
  <tr class="list_header">
    <td width="10"><input type="checkbox" name="checkbox" value="checkbox" onclick='checkedAll(this.checked);'></td>
    <?php for($i=0; $i<count($list_language); $i++){ ?>
    <td><?php echo Kohana::lang('careers_lang.lbl_title')?>
    <img src="<?php echo $this->site['base_url']?>uploads/language/<?php echo $list_language[$i]['languages_image']?>"/>    </td>
    <?php }?>
    <td width="50"><?php echo Kohana::lang('admin_lang.lbl_order')?></td>
    <td width="50"><?php echo Kohana::lang('admin_lang.lbl_status')?></td>
    <td width="50">Top</td>
    <td width="80"><?php echo Kohana::lang('admin_lang.lbl_action')?></td>
  </tr>
  <?php for($i=0; $i<count($mlist); $i++){ ?>
  <tr class="row<?php echo $i%2==0?2:''?>">
    <td><input name="chk_id[]" type="checkbox" id="chk_id[]" value="<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>"></td>
    <?php $languages = $mlist[$i]['languages']?>
    <?php for($j=0;$j<count($languages);$j++){?>
    <td style="text-align:left;">
    <a href="<?php echo $this->site['base_url']?>admin_careers/edit/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>">	
    <?php echo @$languages[$j]['careers_title']?>	</a>    </td>
    <?php }?> 
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_careers/edit/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>"><?php if(isset($mlist[$i]['careers_sort_order'])) echo $mlist[$i]['careers_sort_order']?></a></td>
    <td align="center">
      <?php if(@$mlist[$i]['careers_status'] == 1){ ?>
      <a href="<?php echo $this->site['base_url']?>admin_careers/setstatus/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>/0" >
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_active.png" title="<?php echo Kohana::lang('admin_lang.lbl_active')?>" />        </a>
      <?php } else { ?>    
      <a href="<?php echo $this->site['base_url']?>admin_careers/setstatus/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>/1" >
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_inactive.png" title="<?php echo Kohana::lang('admin_lang.lbl_inactive')?>" />        </a>
      <?php } ?>    </td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_careers/top/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>" >
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/top.png" title="Top" /> </a></td>
    <td align="center">
      <a href="<?php echo $this->site['base_url']?>admin_careers/edit/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>">
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_edit.png" title="<?php echo Kohana::lang('admin_lang.btn_edit')?>" />        </a>
      <a href="<?php echo $this->site['base_url']?>admin_careers/delete/<?php if(isset($mlist[$i]['careers_id'])) echo $mlist[$i]['careers_id']?>" onclick="return confirm('<?php echo Kohana::lang('errormsg_lang.msg_confirm_del')?>')">
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_delete.png" title="<?php echo Kohana::lang('admin_lang.btn_delete')?>" />        </a>    </td>
  </tr>
  <?php } ?>
</table>
<table class="list_bottom" cellspacing="0" cellpadding="5">
  <tr>
    <td>
	<select name="sel_action" id="sel_action">
		<option value="block"><?php echo Kohana::lang('admin_lang.lbl_block_selected')?></option>
		<option value="active"><?php echo Kohana::lang('admin_lang.lbl_active_selected')?></option>
		<option value="delete"><?php echo Kohana::lang('admin_lang.lbl_delete_selected')?></option>
	</select>
    &nbsp;
	<button type="button" name="btn_update" class="button save" onclick="sm_frm(frmlist,'<?php echo $this->site['base_url']?>admin_careers/saveall','<?php echo Kohana::lang('errormsg_lang.msg_confirm_del')?>');"/>
    <span><?php echo Kohana::lang('admin_lang.btn_update')?></span>
    </button>
    </td>
  </tr>
</table>
</form>
<div class='pagination'><?php echo $this->pagination?></div>